package com.zenjava.update;

public class ProgressUpdate
{
    public static enum Stage { downloading, unpacking, installing  }

    private Stage stage;
    private String itemName;
    private long currentProgress;
    private long currentTarget;

    public ProgressUpdate(Stage stage, String itemName, long currentProgress, long currentTarget)
    {
        this.stage = stage;
        this.itemName = itemName;
        this.currentProgress = currentProgress;
        this.currentTarget = currentTarget;
    }

    public Stage getStage()
    {
        return stage;
    }

    public String getItemName()
    {
        return itemName;
    }

    public long getCurrentProgress()
    {
        return currentProgress;
    }

    public long getCurrentTarget()
    {
        return currentTarget;
    }
}
